package business;

import java.util.List;

import vo.Sentence;

public interface SentenceService {

	List<Sentence> getAll();

	void insertSentence(Sentence sentence);

	List<Sentence> getByPaperId(long paperId);

	// 分页
	List<Sentence> getAll(int start, int pageSize);

	long getTotalCount();

	// 带参数的分页
	List<Sentence> getByKeyword(int start, int pageSize, String keyword);

	long getTotalCountByKeyword(String keyword);

	// 按照论文分页
	List<Sentence> getByPaperId(int start, int pageSize, long paperId);

	long getTotalCountByPaperId(long paperId);

	// 按照类型分页
	List<Sentence> getByType(int start, int pageSize, long type);

	long getTotalCountByType(long type);

	// 按照类型,keyword分页
	List<Sentence> getByTypeKeyword(int start, int pageSize, long type, String keyword);

	long getTotalCountByTypeKeyword(long type, String keyword);
}
